import plus from './index.vue';
import bananer from './bananer.vue';
import regionalCopywriting from './regionalCopywriting.vue';
import addBanner from './addBanner.vue';
import updateBanner from './updateBanner.vue';
import {
  addApi
} from '@/utils/http';

export default {
    name:"plus",
    path:"plus",
    component:plus,
    meta:{
        title:"小程序商城",
        menu:"小程序商城"
    },
    children:[
        {
            name: "bananer",
            path:"",
            component: bananer,
            alias: "bananer",
            meta:{
                title:"banner列表"
            }
        },
        {
            name: "bananer",
            path: "regionalCopywriting",
            component: regionalCopywriting,
            meta:{
                title:"区域文案编辑"
            }
        },
        {
            name: "addBanner",
            path: "addBanner",
            component: addBanner,
            meta: {
                title: "添加banner"
            }
        },
        {
            name: "updateBanner",
            path: "updateBanner/:id",
            component: updateBanner,
            meta: {
                title: "修改banner"
            }
        }
    ]
}

export const Api = {
  goodsShelvesAdd: "goodsShelves/add", //添加banner
  bannerList:'goodsShelves/queryPageBanner',//banner列表
  goodsShelvesDel: 'goodsShelves/del', //banner删除
  goodsShelvesControl: "goodsShelves/updateState", //开启、关闭供应商
  goodsShelvesDetail: "goodsShelves/queryDetails", //banner详情
  goodsShelvesUpdate: "goodsShelves/update",//banner修改

}

addApi(Api);